-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TableSasBuilder pattern changes #11790
TableSasBuilder pattern changes #11790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good - just a few comments.
sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs
Outdated
Show resolved
Hide resolved
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] | ||
public string Version { get { throw null; } set { } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably just delete the Version property. The Storage folks decided they'd only support latest and we might as well follow suit unless we explicitly decide otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'll make it internal so that we can still set it from the latest version defined in TableClientOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
Summary
The focus of these changes is to improve the discoverability and usability of generating Shared Access Signature tokens for the Table service. The primary change is the introduction of a new
GetSasBuilder
method on theTableClient
and some improved defaults to theTableSasBuilder
ctor to help guide developers to success.